package com.moji.service.impl;

import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.moji.entity.MjOrder;
import com.moji.entity.MjOrderDetail;
import com.moji.mapper.MjOrderDetailMapper;
import com.moji.service.MjOrderDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 订单明细表 服务实现类
 * </p>
 *
 * @author ccl
 * @since 2024-08-13
 */
@Service
public class MjOrderDetailServiceImpl extends ServiceImpl<MjOrderDetailMapper, MjOrderDetail> implements MjOrderDetailService {

    @Override
    public boolean delete(Long id) {
        if(ObjectUtil.isEmpty(id)){
            throw new RuntimeException("主键ID不能为空,请核查!");
        }
        return this.removeById(id);
    }
}
